import request from "../utils/request.js";

export const updateUpState = (data) => {
    return request({
        url: '/stuCourse/updateState',
        method: 'post',
        data: data
    })
}

export const deleteCourse = (data) => {
    return request({
        url: '/stuCourse/delete/' + data.id,
        method: 'delete',
        params: data
    })
}

export const joinCourseOfStudent = (data) => {
    return request({
        url: '/stuCourse/join',
        method: 'post',
        data: data
    })
}
